package com.example.demo.service;

import com.example.demo.domain.entity.TrainCommitRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author DaoJia
* @description 针对表【train_commit_record(培训系统-提交记录)】的数据库操作Service
* @createDate 2024-02-05 21:01:57
*/
public interface TrainCommitRecordService extends IService<TrainCommitRecord> {

    List<TrainCommitRecord> queryByHwIdAndPIdAndClassId(Long homeworkId, Long problemId, Long classId);

    List<TrainCommitRecord> queryByHwIdAndPIdAndClassIdAndUser(Long homeworkId, Long problemId, Long classId, Long userId);

    TrainCommitRecord getBySubmissionId(Long submissionId);

    void changeScore(Long userId, Long submitId, Integer score);

    List<TrainCommitRecord> getByClassIdAndProblemId(Long classId, Long problemId);
}
